require 'rails/generators'
module Singularity
  module Generators
    class InitializeGenerator < Rails::Generators::Base

      namespace 'singularity:oauth:setup'
      source_root File.expand_path('../../templates', __dir__)

      desc '初始化oauth客户端'

      def copy_setup_files
        copy_file 'config/initializers/singularity_client.rb', "config/initializers/singularity_client.rb"
      end
    end
  end
end